package com.shelpe.services.algorithm.constant;

public enum MobileRank {

	firstOfIndex(0), firstThreeOfIndex(1), from4to6OfIndex(3), from7to10OfIndex(6), from11to15OfIndex(10), 
	from16to20OfIndex(11), after20OfIndex(12);
	
	private int value;
	private MobileRank(int v){
		this.value = v;
	}
	public int getValue(){
		return this.value;
	}
	
	public static MobileRank from(int v){
		MobileRank rank = MobileRank.after20OfIndex;
		for(MobileRank r: MobileRank.values()){
			if(r.getValue() == v){
				rank =r;
				break;
			}
		}
		return rank;
	}
	
	
}
